package com.star.mentor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.star.mentor.entity.EvaluationItem;
import com.star.mentor.vo.EvaluationItemDetailVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 评估项目明细 Mapper 接口
 *
 * @author yangzj
 */
public interface EvaluationItemMapper extends BaseMapper<EvaluationItem> {

    /**
     * 列表详情
     *
     * @param evaluationId 评价ID
     * @return {@link List}<{@link EvaluationItemDetailVO}>
     */
    List<EvaluationItemDetailVO> listDetail(@Param("evaluationId") Long evaluationId);

    /**
     * 列表详情+评估得分
     *
     * @param evaluationId       评估ID
     * @param mentorEvaluationId 导师评估ID
     * @return {@link List}<{@link EvaluationItemDetailVO}>
     */
    List<EvaluationItemDetailVO> listEvaluation(@Param("evaluationId") Long evaluationId, @Param("mentorEvaluationId") Long mentorEvaluationId);
}
